import MyComponent from "./MyComponent.js";
import {generateElement} from "../functions/common.js";

export default class TextDiv extends MyComponent{
    constructor(){
        super();
        this.elem = generateElement({
            type: "div",
            innerText: "TextDiv",
            fontSize: "18px",
            border: "1px solid",
            padding: "4px"
        });
    }
    setText(newText){
        this.elem.innerText = newText;
    }
}